package com.kang.service;

import java.util.List;

import com.kang.pojo.Shop;
import com.vonechina.entity.page.ShopPage;

/**
 * 店仓服务层
 * 
 * @author zs614
 *
 */
public interface ShopService {
	/**
	 * 分页查询店仓
	 * 
	 * @param shopPage
	 *            搜索条件实体类
	 * @return
	 */
	public List<Shop> listShop(ShopPage shopPage);

	/**
	 * 查询全部店仓
	 * 
	 * @return
	 */
	public List<Shop> listAllShop();

	/**
	 * 删除店仓
	 * 
	 * @param shopid
	 *            店仓ID
	 * @return
	 */
	public int deleteByPrimaryKey(Integer shopid);

	/**
	 * 新增店仓
	 * 
	 * @param record
	 *            店仓实体类
	 * @return
	 */
	public int insert(Shop record);

	/**
	 * 新增店仓
	 * 
	 * @param record
	 *            店仓实体类
	 * 
	 * @return
	 */
	public int insertSelective(Shop record);

	/**
	 * 通过主键查询店仓
	 * 
	 * @param shopid
	 *            店仓OD
	 * @return
	 */
	public Shop selectByPrimaryKey(Integer shopid);

	/**
	 * 更新店仓
	 * 
	 * @param record
	 *            店仓实体类
	 * @return
	 */
	public int updateByPrimaryKeySelective(Shop record);

	/**
	 * 更新店仓
	 * 
	 * @param record
	 *            店仓实体类
	 * @return
	 */
	public int updateByPrimaryKey(Shop record);

	/**
	 * 生成店仓编号
	 * 
	 * @return
	 */
	public String generatoCode();
}
